<#--
  Copyright (c) 2020-Now http://www.j2eefast.com All rights reserved.
  No deletion without permission
  页面布局总入口,组件引入总入口 前端默认引擎
  @author J2eeFAST
  @date 2021-07-06
  @version v1.0.3
-->

<#--页面主题-->
<#macro pageTheme mark = false>
	<#if mark?string == "true">
		<@compress single_line=true>
			<#nested>
		</@compress>
	<#else>
		<#nested>
	</#if>
<@compress single_line=true>
<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?d7168b0cef9904be9b675a22e48c5721";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
</script>
</@compress>
<#assign jscssLib="">
<#assign animationTag=true>
</#macro>

<#--页面公共头部-->
<#macro header title = "默认标题J2eeFAST"
               libs = "" <#-- 需要引入的css js样式 -->
               bodyClass = "gray-bg" <#-- body样式-->
               isAnimation = true <#--是否需要页面动画 -->
               animation = "fadeInRight" <#-- -->
               style = "" <#-- body style-->
               isPAS = true <#--禁止修改 -->
               attrValue = "" <#--body 属性值 -->
                >
<#assign jscssLib=libs>
<#assign animationTag=isAnimation>
<!DOCTYPE html>
<html>
<head>
<#-- 其他地方代码都可以改,未获得作者许可此信息(以下信息到END结束)请不要修改。请尊重作者劳动成果! ™否则作者有权收回软件使用权ø -->
<#-- 软著编号: 2020SR1589493 -->
<title>${title} - Powered By J2eeFast</title>
<meta content='on' http-equiv='x-dns-prefetch-control'>
<#import "springctx.ftl" as ctx>
<meta charset="utf-8">
<meta content='always' name='referrer'>
<meta content='J2eeFAST' property='og:site_name'>
<meta content='Object' property='og:type'>
<meta content='http://www.j2eefast.com/' property='og:url'>
<meta content='${title} - Powered By J2eeFast' itemprop='name' property='og:title'>
<meta content="PoweredByJ2eeFAST、J2eeFAST" naTme="keywords">
<meta content="PoweredByJ2eeFAST、J2eeFAST" itemprop='description' name='Description'>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Content-Language" content="${config.getSysLang()}">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<#----------------------------------------END--------------------------------------------------------------->
<#if sys_csrfToken??>
<meta content="${sys_csrfToken}" name="csrf-token" />
</#if>
<link rel="shortcut icon" href="${ctxStatic}/static/img/favicon.ico"/>
<script src="${ctxStatic}/static/libs/jquery.min.js"></script>
<script src="${ctxStatic}/static/libs/jquery-migrate.min.js"></script>
<#if isPAS>
<script>
var baseURL = "${ctxStatic}/", _lang = "${config.getSysLang()}",  _username = "<@shiro.principal property="username"/>"  ,
_userId = "<@shiro.principal property="id"/>",
LockScreen = ${config.getKey('SYS_LOCK_SCEREEN')}; function imgUserError(){var img=event.srcElement;img.src=baseURL+"static/img/user2-160x160.jpg"; img.onerror=null;}
</script>
<@cssLibs.css Libs = libs/>
<#-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<#-- WARNING: Respond.js doesn't work if you view the page via file:// -->

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<#-- Vue单页面刷新闪烁标签{{}}问题解决-->
<style>
    [v-cloak]{display:none !important;}
</style>
</#if>
<#nested>
</head>
<#if isPAS>
<body class="${bodyClass} sidebar-mini ${config.getKey('SYS_INDEX_SKINNAME','skin-blue')}" <#if style !="">style="${style}"</#if><#if attrValue != "">${attrValue}</#if>>
<#if animationTag && attrValue == "">
<div id="__bodyDiv009" class="animated ${animation}">
</#if>
</#if>
</#macro>

<#--页面公共尾部-->
<#macro footer>
<#if animationTag>
</div>
</#if>
<a id="scroll-up" href="#" class="btn btn-sm display"><i class="fa fa-angle-double-up"></i></a>
<@jsLibs.js Libs = jscssLib/>

<#nested>
</body>
</html>
</#macro>

<#--表格-->
<#macro table id = "bootstrap-table"
              class = ""
              isNative = false <#-- 是否需要添加外层div-->
>
	<#if isNative?string == "false">
    <div class="btn-group-sm" id="toolbar-${id}" role="group">
        <#nested>
    </div>
    <div class="col-sm-12 select-table table-striped<#if class!=""> ${class}</#if>">
        <table id="${id}"></table>
    </div>
    <#else>
    	<table id="${id}"></table>
    </#if>
</#macro>

<#-- 引入控件组件-->
<#import "jslibs.html" as jsLibs>
<#import "csslibs.html" as cssLibs>
<#import "/common/component/form.html" as f>